package com.xxpt.common.utils;

import org.springframework.context.ApplicationContext;

public class SpringContextUtil {
    public static ApplicationContext applicationContext;

    public SpringContextUtil() {
    }

    public static void setApplicationContext(ApplicationContext context) {
        applicationContext = context;
    }

    public static Object getBean(String beanId) {
        return applicationContext.getBean(beanId);
    }
}
